﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KYO.DAL;
using BusinessLayerHelper;
using A2Z.BusinessService;
using ObjectPersistence;

public partial class Admin_Controls_Mod_ModuleManager_ModuleManagerList : ListControlBase<Module>
{
    ModuleService moduleService = new ModuleService();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ToolbarBox1.Header = "Module Mananger";
            List<UrlItem> urls = new List<UrlItem>();
            UrlItem url = new UrlItem();
            url.Text = "Intall";
            url.Url = DoAction.ActionPageView(PageView.ModuleManager, Action.SETUP);
            urls.Add(url);
            ToolbarBox1.Options = urls;
            LoadData();
        }
    }

    public override PersistentList<Module> GetListObjects
    {
        get { return moduleService.GetAllModule(); }
    }
}
